#ifndef					__HANDLER_H__
#define					__HANDLER_H__

#include				"processor.h"
#include				"byte.h"
#include				"packet.h"
#include				<boost/asio.hpp>

class					ASocket;

class					PacketHandler
{
public:
	PacketHandler(Processor &);
	~PacketHandler();

private:
	Processor			&_proc;

public:
	void				disconnect(ASocket *);
	void				harvest(ASocket*);
	void				harvest(ASocket*, boost::asio::ip::udp::endpoint*);
	Packet				*toPacket(byteArray	*) const;
};

#endif // !__HANDLER_H__
